<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/static/plugins/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="/static/admin/tplay/font-awesome/css/font-awesome.min.css" media="all" />
  <link rel="stylesheet" href="/static/admin/tplay/css/admin.css"  media="all">
</head>
<body style="padding:10px;">
  <div class="tplay-body-div">

    <div style="margin-top: 20px;">
    </div>
    <form class="layui-form" id="admin">
      <div class="layui-form-item">
        <div class="layui-collapse" lay-accordion="" style="margin-left:10px;">
          {volist name="$info" id="data"}

          {eq name="data.type" value="1"}
          <div class="layui-colla-item" style="border:0;">
            
            <h2 class="layui-colla-title" style="background:0;">{$data.title}</h2>
          
            <div class="layui-colla-content">
              <table>
                <tbody>
                  
                  {eq name="data.type" value="1"}
                  <tr>
                    <td>
                      <input type="checkbox" lay-ignore lay-skin="primary" name="auth_rule_id[]" value="{$data.id}" {notempty name="$group.rules"}{volist name="$group.rules" id="datas"}{eq name="$datas" value="$data.id"}checked{/eq}{/volist}{/notempty}>{$data.title}
                    </td>
                    
                  </tr> 
                  {/eq}
                  {volist name="$data._child" id="vv"}
                  <tr>
                  {eq name="vv.type" value="1"}
                  <td style="line-height: 35px;">
                    <?php echo str_repeat('&emsp;&emsp;',1).'└ ';?>
                    <input type="checkbox" lay-ignore lay-skin="primary" name="auth_rule_id[]" value="{$vv.id}" {notempty name="$group.rules"}{volist name="$group.rules" id="datas"}{eq name="$datas" value="$vv.id"}checked {else /}{eq name="$vv.type" value="2"}checked disabled{/eq}{/eq}{/volist}{else /}{eq name="$vv.type" value="2"}checked disabled{/eq}{/notempty}>{$vv.title}
                  </td>
                  {/eq}
                </tr>

                  {notempty name="$vv._child"}
                  {volist name="$vv._child" id="vvv"}
                  <tr>
                    <td>
                      <?php echo str_repeat('&emsp;&emsp;',2).'└ ';?>
                      <input type="checkbox" lay-ignore lay-skin="primary" name="auth_rule_id[]" value="{$vvv.id}" {notempty name="$group.rules"}{volist name="$group.rules" id="datas"}{eq name="$datas" value="$vvv.id"}checked {else /}{eq name="$vvv.type" value="2"}checked disabled{/eq}{/eq}{/volist}{else /}{eq name="$vvv.type" value="2"}checked disabled{/eq}{/notempty}>
                      {$vvv.title}
                    </td>
                  </tr>
                  {/volist}
                  {/notempty}

                {/volist}
                </tbody>
              </table>
            </div>
          </div>
          {/eq}
          
          {/volist}
        </div>
      </div>      
    </form>

    <script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
    <script src="/static/common/jquery/jquery.min.js"></script>
    <script>
        var message;
        layui.config({
            base: '/static/admin/tplay/js/',
            version: '1.0.1'
        }).use(['app', 'message'], function() {
            var app = layui.app,
                $ = layui.jquery,
                layer = layui.layer;
            //将message设置为全局以便子页面调用
            message = layui.message;
            //主入口
            app.set({
                type: 'iframe'
            }).init();
        });
    </script>
  </div>
</body>
</html>